﻿<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>@ViewBag.Title - 系统管理</title>
    @Styles.Render("~/Content/Control")
    @RenderSection("style", required: false)
    @Scripts.Render("~/bundles/Control")
    @*@Scripts.Render("~/Content/layer")*@
    @RenderSection("scripts", required: false)
    <script src="~/Scripts/jquery.unobtrusive-ajax.min.js"></script>
    
    <style>
        .navbar-collapse .navbar-nav.navbar-right:last-child {
            margin-right: -85px;
        }
    </style>
</head>
<body>
    <div class="navbar navbar-default navbar-fixed-top" id="topbar">
        <div class="container">
            <div class="navbar-header">
                <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">
                    <span class="icon-bar"></span>
                    <span class="icon-bar"></span>
                    <span class="icon-bar"></span>
                </button>
                @Html.ActionLink("中国•英利", "Index", "Home", new { area = "Control" }, new { @class = "navbar-brand" })
            </div>
            <div class="navbar-collapse collapse">
                <ul class="nav navbar-nav">                    
                    <li><a href="@Url.Action("Index","Admin")"><span class='glyphicon glyphicon-lock'></span> 管理员</a></li>
                    <li><a href="@Url.Action("Index", "News")"><span class="glyphicon glyphicon-list-alt"></span> 新闻管理</a></li>
                    <li class="dropdown">
                        <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false"><span class="glyphicon glyphicon-leaf"></span> 物料管理 <span class="caret"></span></a>
                        <ul class="dropdown-menu">
                            <li><a href="@Url.Action("Index","Breaked")"> 断线管理</a></li>
                            <li><a href="@Url.Action("Index","SiliconCarbide")"> 碳化硅管理</a></li>
                            <li><a href="@Url.Action("Index","Suspension")"> 悬浮液管理</a></li>
                            <li><a href="@Url.Action("Index","SteelWire")"> 钢线管理</a></li>
                        </ul>
                    </li>
                    <li class="dropdown">
                        <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false"><span class="glyphicon glyphicon-tasks"></span> 生产管理 <span class="caret"></span></a>
                        <ul class="dropdown-menu">
                            <li><a href="@Url.Action("Index","Workshop")"> 车间管理</a></li>
                            <li><a href="@Url.Action("Index","Team")"> 班组管理</a></li>
                            <li><a href="@Url.Action("Index","SiliconCutting")"> 硅片切割-多晶</a></li>
                            <li><a href="@Url.Action("Index","EquipmentFile")"> 设备档案管理</a></li>
                            <li><a href="@Url.Action("Index", "PolycrystallineReport")"> 多晶日报</a></li>
                            <li><a href="@Url.Action("Index", "SingleCrystalReport")"> 单晶日报</a></li>
                        </ul>
                    </li>
                </ul>
                <ul class="nav navbar-nav navbar-right">
                    <li id="my_info">
                        <a href="@Url.Action("MyInfo","Admin")"><span class="glyphicon glyphicon-user"></span> @Context.Session["Accounts"].ToString()</a>
                    </li>
                    <li>
                        <a href="@Url.Action("Logout","Admin")"><span class="glyphicon glyphicon-log-out"></span> 退出</a>
                    </li>
                </ul>
            </div>
        </div>
    </div>
    <div class="container body-content">
        <div class="row">
            <div class="col-lg-2 col-md-2 col-sm-2">@RenderSection("SideNav", false)</div>
            <div class="col-lg-10 col-md-10 col-sm-10">@RenderBody()</div>
        </div>
        <hr />
        <footer class="navbar navbar-fixed-bottom text-center bg-primary ">
            @*<p>&copy; 英利生产管理系统 Created By Tony</p>*@
        </footer>
    </div>    
</body>

</html>
<script src="~/Content/layer/layer.js"></script>
<script src="~/Content/layer/laytpl.js"></script>
<script src="~/Content/layer/laydate/laydate.js"></script>
<script src="~/Content/layer/laypage/laypage.js"></script>
<script type="text/javascript">
    function myBrowser() {
        var userAgent = navigator.userAgent; //取得浏览器的userAgent字符串
        var isOpera = userAgent.indexOf("Opera") > -1; //判断是否Opera浏览器
        var isIE = userAgent.indexOf("compatible") > -1 && userAgent.indexOf("MSIE") > -1 && !isOpera; //判断是否IE浏览器
        var isFF = userAgent.indexOf("Firefox") > -1; //判断是否Firefox浏览器
        var isSafari = userAgent.indexOf("Safari") > -1; //判断是否Safari浏览器
        if (isIE) {
            var IE5 = IE55 = IE6 = IE7 = IE8 = false;
            var reIE = new RegExp("MSIE (\\d+\\.\\d+);");
            reIE.test(userAgent);
            var fIEVersion = parseFloat(RegExp["$1"]);
            IE55 = fIEVersion == 5.5;
            IE6 = fIEVersion == 6.0;
            IE7 = fIEVersion == 7.0;
            IE8 = fIEVersion == 8.0;
            if (IE55) {
                return "IE55";
            }
            if (IE6) {
                return "IE6";
            }
            if (IE7) {
                return "IE7";
            }
            if (IE8) {
                return "IE8";
            }
        }//isIE end
        if (isFF) {
            return "FF";
        }
        if (isOpera) {
            return "Opera";
        }
    }//myBrowser() end
    //以下是调用上面的函数    
    if (myBrowser() == "IE55" || myBrowser() == "IE6" || myBrowser() == "IE7" || myBrowser() == "IE8") {
        layer.open({
            type: 1
            , offset: 'rb' //具体配置参考：offset参数项
            , content: '<div style="padding: 20px 40px; color:#FF0033">检测到您还在使用低版本的IE浏览器，<font size=3px><b>强烈建议使用Chrome，FireFox浏览器或者将您的IE浏览器升级到IE8.0以上</b></font>，如果您使用的是360等国产浏览器(当然希望您不要使用此类浏览器)，请将浏览模式调整为极速模式。如果您坚持使用低版本浏览器，请向开发者支付一笔开发费用（暂定500RMB），收到款后，我们会针对性为您所使用的浏览器进行兼容性开发。<br /><a href="javascript:void(0)" onclick="getPaypng()">支付款项</a></div>'
            , btn: '关闭'
            , btnAlign: 'c' //按钮居中
            , shade: 0 //不显示遮罩
            , yes: function () {
                layer.closeAll();
            }
        });
    }
    function getPaypng() {
        layer.open({
            type: 1,
            title: false,
            closeBtn: 0,
            area: '210px',
            skin: 'layui-layer-nobg', //没有背景色
            shadeClose: true,
            content: "<img src='../Content/Images/pay.png'/>"
        })
    }
</script>